// TypeScript file
module tool {
    export class HttpService {

        // public static HTTP_CONNECT:string="http://test.anoqo.cn/application/game/controller/Sangong.php"


        public static getHTTP_Connect(room_id: string, member_id: string = null, userid: string = null): string {
            if (member_id) {
                return "http://www.kw08.cn/game.php/Sangong/index?room_id=" + room_id + "&dealer_num=13&member_id=" + member_id + "&userid=" + userid
            } else {
                return "http://www.kw08.cn/game.php/Sangong/index?room_id=" + room_id + "&dealer_num=13"
            }
        }
        public static getWxConfig(room_id: string, member_id: string = null, userid: string = null): string {
            if (member_id) {
                return "http://www.kw08.cn/game.php/Sangong/GetWxconfig?room_id=" + room_id + "&dealer_num=13&member_id=" + member_id + "&userid=" + userid
            } else {
                return "http://www.kw08.cn/game.php/Sangong/GetWxconfig?room_id=" + room_id + "&dealer_num=13"
            }
        }

    }
}